package day04;
import java.util.Scanner;
public class CommandBySwitch {
    public static void main(String[] args) {
        Scanner sca = new Scanner(System.in);
        System.out.println("请选择功能：1.存款 2.取款 3.转账 4.退出");
        int command = sca.nextInt();
        switch (command){
            case 1:
                System.out.print("请输入您要存款的数目：");
                int money1 = sca.nextInt();
                break;
            case 2:
                System.out.print("请输入您要取款的数目：");
                int money2 = sca.nextInt();
                break;
            case 3:
                System.out.print("输入要转的数目：");
                int money3 = sca.nextInt();
                break;
            case 4:
                System.out.println("");
                break;
            default:
                System.out.println("");
        }
    }
}
